﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BattleMaster_IRCbot.UserCommands
{
    class Quit : Command
    {
        public override string Name { get { return _name; } }
        public override string[] Aliasses { get { return _aliasses; } }
        public override string Description { get { return _description; } }
        public override string ShortDesc { get { return _shortDesc; } }

        public Quit()
        {
            _name = "Quit";
            _aliasses = new string[] { "exit" };
            _description = "This command initiates a shutdown of the program environment.";
            _shortDesc = "Exits the program.";
        }

        public override void Verb(Game game, string msgOrigen, string[] cmd)
        {
            if (msgOrigen == "console")
            {
                Program.Exit();
            }
        }
    }
}
